package faw.car.ccentersdk.prop;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @Author zhuima
 */
public class RetValue implements Parcelable {

    private int mStatus;
    private int mSessionId;

    public RetValue(int mStatus, int mSessionId) {
        this.mStatus = mStatus;
        this.mSessionId = mSessionId;
    }

    public int getStatus() {
        return mStatus;
    }

    public int getSessionId() {
        return mSessionId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.mStatus);
        dest.writeInt(this.mSessionId);
    }

    public void readFromParcel(Parcel source) {
        this.mStatus = source.readInt();
        this.mSessionId = source.readInt();
    }

    protected RetValue(Parcel in) {
        this.mStatus = in.readInt();
        this.mSessionId = in.readInt();
    }

    public static final Creator<RetValue> CREATOR = new Creator<RetValue>() {
        @Override
        public RetValue createFromParcel(Parcel source) {
            return new RetValue(source);
        }

        @Override
        public RetValue[] newArray(int size) {
            return new RetValue[size];
        }
    };
}
